package com.cskaoyan.controller.wx;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.wx.vo.NewGoodsList;
import com.cskaoyan.service.AdService;
import com.cskaoyan.service.HomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author
 * @date 2020/12/9 14:02
 */
@RestController
public class WxHomeController {
    @Autowired
    HomeService homeService;

    @RequestMapping("wx/home/index")
    public BaseRespVo index(){

        NewGoodsList newGoodsList = homeService.queryHomeList();

        return BaseRespVo.ok(newGoodsList);
    }
}
